<?php
/**
 * Created by PhpStorm.
 * User: wangmx
 * Date: 2016/11/17
 * Time: 17:50
 */

namespace App\Http\Routes;

use Illuminate\Contracts\Routing\Registrar;
class UserBackRoute
{
    public function map(Registrar $router)
    {
        $router->group(['middleware' =>[ 'web','auth','permissions.check'],
            'prefix' =>'backstage/user/'], function ($router) {
            $router->get('userlist',['uses' =>'Backstage\UserController@user_list'])->name('get.user.userlist');
            $router->get('detail',['uses' =>'Backstage\UserController@user_list'])->name('get.user.userlist.detail');
            $router->post('search',['uses' =>'Backstage\UserController@search'])->name('post.user.userlist.search');
            $router->post('create-user',['uses' =>'Backstage\UserController@createUser'])->name('post.user.userlist.create-user');
        });
    }
}